import javax.swing.JFrame;
import javax.swing.JCheckBox;
import javax.swing.JToggleButton;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JRadioButton;
import javax.swing.SwingConstants;
import javax.swing.JButton;
import javax.swing.JTextArea;


public class ex2 extends JFrame{
	public ex2() {
		JFrame mainFrame=new JFrame();
		mainFrame.setSize(400, 500);
		getContentPane().setLayout(null);
		
		JCheckBox chckbxNewCheckBox = new JCheckBox("New check box");
		chckbxNewCheckBox.setBounds(105, 52, 103, 23);
		getContentPane().add(chckbxNewCheckBox);
		
		JToggleButton tglbtnNewToggleButton = new JToggleButton("New toggle button");
		tglbtnNewToggleButton.setBounds(91, 201, 135, 23);
		getContentPane().add(tglbtnNewToggleButton);
		
		JCheckBox chckbxNewCheckBox_1 = new JCheckBox("New check box");
		chckbxNewCheckBox_1.setBounds(105, 77, 103, 23);
		getContentPane().add(chckbxNewCheckBox_1);
		
		JCheckBox chckbxNewCheckBox_2 = new JCheckBox("New check box");
		chckbxNewCheckBox_2.setBounds(105, 102, 103, 23);
		getContentPane().add(chckbxNewCheckBox_2);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"\u9662\u7CFB"}));
		comboBox.setBounds(283, 53, 78, 21);
		getContentPane().add(comboBox);
		
		JRadioButton rdbtnNewRadioButton = new JRadioButton("New radio button");
		rdbtnNewRadioButton.setHorizontalAlignment(SwingConstants.TRAILING);
		rdbtnNewRadioButton.setBounds(258, 102, 121, 23);
		getContentPane().add(rdbtnNewRadioButton);
		
		JRadioButton rdbtnNewRadioButton_1 = new JRadioButton("New radio button");
		rdbtnNewRadioButton_1.setBounds(258, 146, 121, 23);
		getContentPane().add(rdbtnNewRadioButton_1);
		
		JRadioButton rdbtnNewRadioButton_2 = new JRadioButton("New radio button");
		rdbtnNewRadioButton_2.setBounds(258, 190, 121, 23);
		getContentPane().add(rdbtnNewRadioButton_2);
		
		JButton btnNewButton = new JButton("New button");
		btnNewButton.setBounds(105, 146, 103, 23);
		getContentPane().add(btnNewButton);
		
		JTextArea textArea = new JTextArea();
		textArea.setBounds(87, 130, -65, 40);
		getContentPane().add(textArea);
		
		JTextArea textArea_1 = new JTextArea();
		textArea_1.setBounds(105, 22, 103, 24);
		getContentPane().add(textArea_1);
		
		
		setVisible(true);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new ex2();

	}
}
